projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1a168f
)
* test/src/comp-tests.el (compile-forms): Fix missing lexical binding.
author
Andrea Corallo
<akrl@sdf.org>
Sun, 1 Nov 2020 13:41:17 +0000
(14:41 +0100)
committer
Andrea Corallo
<akrl@sdf.org>
Sun, 1 Nov 2020 14:17:00 +0000
(15:17 +0100)
test/src/comp-tests.el
patch
|
blob
|
history
diff --git
a/test/src/comp-tests.el
b/test/src/comp-tests.el
index 9c3c7f62a3070d6d2747f3e346c0804402142352..21c8abad038597410f73f2e3e042594a755a8f01 100644
(file)
--- a/
test/src/comp-tests.el
+++ b/
test/src/comp-tests.el
@@
-418,7
+418,8
@@
https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-03/msg00914.html."
(comp-deftest compile-forms ()
"Verify lambda form native compilation."
(should-error (native-compile '(+ 1 foo)))
- (let ((f (native-compile '(lambda (x) (1+ x)))))
+ (let ((lexical-binding t)
+ (f (native-compile '(lambda (x) (1+ x)))))
(should (subr-native-elisp-p f))
(should (= (funcall f 2) 3)))
(let* ((lexical-binding nil)